package com.guigu.wenzhiyi.controller;

import com.github.pagehelper.PageInfo;
import com.guigu.tankai.pojo.Member;
import com.guigu.wenzhiyi.service.InterposeschemeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("Interposescheme")
public class InterposeschemeController {

    @Autowired
    InterposeschemeService interposeschemeService;

    @RequestMapping("page")
    public PageInfo<Member> page(Integer num, Integer size, String name){
        return interposeschemeService.page(num,size,name);
    }

    @RequestMapping("add")
    public int add(@RequestBody Member member){
        return interposeschemeService.add(member);
    }
}
